//
//  JsWebImage.h
//  JsoUtilitySdk
//
//  Created by Gikki Ares on 2021/8/12.
//

#import <Foundation/Foundation.h>
#import "JsRequestManager.h"
#import "JsWebImageMemoryCache.h"

NS_ASSUME_NONNULL_BEGIN

@interface JsWebImageManager : NSObject

+ (JsWebImageManager * )sharedInstance;

+ (void)downloadImageWithUrlString:(NSString *)urlString completionHandler:(void(^)(UIImage * image))handler;

@end


@interface UIImageView (JsWebImage)

-(void)setImageWithUrlString:(NSString *)urlString;
-(void)setImageWithUrlStringAndDefaultPlaceholder:(NSString *)urlString;
-(void)setImageWithUrlString:(NSString *)urlString placeholder:(nullable UIImage *)placeholder;

@end

NS_ASSUME_NONNULL_END
